<template>
<!-- 缴费确认 -->
  <policy-list v-if="show" :type="'缴费确认'" @goCenter="goCenter" ref="list" @close="close">
            </policy-list >
</template>

<script>
import PolicyList from "@/components/Sell/PolicyList";
import api from "@/js/api";
export default {
  data() {
    return {
      show: false
    };
  },
  components: {
    "policy-list": PolicyList
  },
  methods: {
    goCenter(id) {
      var data = {
        SALESDETAIL_ID: id,
        SALESDETAIL_CHECKSTATE: "需到账确认"
      };
      let that = this;
      api.SaledetailUpdatePart(that, data, function(msg) {
        that.close();
      });
    },
    close() {
      try {
        this.$refs.list.getDate();
      } catch (error) {}
    }
  },
  activated() {
    this.show = true;
    try {
      this.$refs.list.getDate();
    } catch (error) {      
    }    
  }
};
</script>

<style>

</style>
